package com.jdz.noise.entities;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer code;//类似404的编码
    private String message;
    private T data;
    public CommonResult(Integer code, String message)//两参构造方法
    {
        this(code,message,null);
    }
}
